- Understanding the Linux File System is like learning the map of a new city. Everything in Linux is a file, and every file has a place.*
In Linux, everything starts from the Root (/). It's the base of the tree from which all other directories branch out.
| Directory | Symbol | Description |
|---|---|---|
| Root | / |
The starting point of the filesystem. The "God" directory containing everything. |
| User Home | /home |
Contains personal directories for users (e.g., /home/usman). |
| Home Shortcut | ~ |
A quick shortcut to the current user's home (e.g., cd ~ takes you home). |
| Super User Home | /root |
The private home directory for the System Administrator (Root user). |
| Binaries | /bin |
The Toolbox. Contains essential commands like ls, cp, cat. |
| Variables | /var |
Stores changing data like system logs (/var/log). |
| Temporary | /tmp |
Scratchpad space. Files here are often deleted on reboot. |
/etcðŸ•µï¸ Hacker's Note: This directory is a goldmine for understanding how a system is configured.
The /etc directory acts as the system's Rule Book. It controls who can do what, network settings, and startup scripts.
/etc/etc/passwd/etc/shadow/etc/sudoerssudo privileges.